using MediatR;
using RBAC.ErrorCode;

namespace RBAC.Write.Api.Application.Command.ERP.MaterialFile.Department
{
    /// <summary>
    /// 创建部门命令
    /// </summary>
    public class CreateDepartmentCommand : IRequest<APIResult<int>>
    {
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 父部门ID
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int? Sort { get; set; }

        /// <summary>
        /// 部门状态 1启用 0禁用
        /// </summary>
        public int Status { get; set; } = 1;
    }
}